import mains from '@/components/main/main.vue'
import HelloWorld from '@/components/HelloWorld'
import login from '@/components/login/login'
import home from '@/components/home/home.vue'
import imgeditor from '@/components/imgmodules/imgeditor.vue'
import imglist from '@/components/imgmodules/imglist.vue'
import preview from '@/components/imgmodules/preview.vue'
import previewhome from '@/components/imgmodules/previewhome.vue'
import previewtjt from '@/components/imgmodules/previewtjt.vue'
import previewfxyj from '@/components/imgmodules/previewfxyj.vue'
import previewsspd from '@/components/imgmodules/previewsspd.vue'

import error_401 from '@/components/error-page/error_401.vue'
import error_404 from '@/components/error-page/error_404.vue'
import error_500 from '@/components/error-page/error_500.vue'

export const route = [
	{
	  path: '/',
	  name: '_home',
	  redirect: '/home',
	  meta:{
	  },
	  component:mains,
	  children:[
	  	{
	  		path:"/home",
	  		name:'home',
	  		meta:{
	  			title:"首页",
	  			icon:""
	  		},
	  		component:home
	  	}
	  ],
	},
	{
		path: '/login',
		name: 'login',
		component:login
	},
	{	
		name: 'imgeditor',
		path: '/imgeditor',
		component:imgeditor
	},
	{	
		name: 'preview',
		path: '/preview',
		component:preview,
		meta:{
			authorization:false
		}
	},
	{	
		name: 'previewhome',
		path: '/previewhome',
		component:previewhome,
		meta:{
			authorization:false
		}
	},
	{	
		name: 'previewtjt',
		path: '/previewtjt',
		component:previewtjt,
		meta:{
			authorization:false
		}
	},
	{	
		name: 'previewfxyj',
		path: '/previewfxyj',
		component:previewfxyj,
		meta:{
			authorization:false
		}
	},
	{	
		name: 'previewsspd',
		path: '/previewsspd',
		component:previewsspd,
		meta:{
			authorization:false
		}
	},
	{
		path: '/imglist',
		name: 'imglist',
		component:imglist
	},
	{
	  	path: '/401',
	  	name: 'error_401',
	  	meta: {
	  	  hideInMenu: true
	  	},
	  	component:error_401
	},
	{
	  	path: '/500',
	  	name: 'error_500',
	  	meta: {
	  	  hideInMenu: true
	  	},
	  	component: error_500
	},
	{
	  	path: '/404',
	  	name: 'error_404',
	  	meta: {
	  	  hideInMenu: true
	  	},
	  	component: () => error_404
	}
  ]